package com.sk.bilibili;

import android.app.Application;

import com.previewlibrary.ZoomMediaLoader;
import com.sk.api.annotations.MapperConfig;
import com.sk.api.tool.BindTool;
import com.sk.bilibili.config.NetConfig;
import com.sk.bilibili.config.OtherConfig;
import com.sk.bilibili.other.ApplicationFactory;
import com.sk.bilibili.other.ZoomImageLoader;


@MapperConfig(packageName = "com.sk.bilibili.config")
public class BiliBiliApp extends Application {

    @Override
    public void onCreate() {
        super.onCreate();
        ZoomMediaLoader.getInstance().init(new ZoomImageLoader());//初始化图片预览信息
        BindTool.getInstance().init(NetConfig.class, OtherConfig.class);
        BindTool.getInstance().put("application",new ApplicationFactory(this));
        BindTool.getInstance().loadByClassName("com.sk.bilibili.config.MapperConfig");
    }

}